import request from '@/utils/request/index'

export default {
  login(data) {
    return request.post('/api/user/login', data)
  },
  upload(data) {
    return request.postBlob('/api/upload', data)
  },
  userList(data){
    console.log(data)
    return request.get('/api/user/list', data)
  },
  create(data){
    return request.post('/api/user/create', data)
  },
  update(data){
    return request.post('/api/user/update', data)
  },
  delete(id){
    return request.delete(`/api/user/delete/${id}`)
  },

}
